import { IsEmail, IsNotEmpty } from "class-validator";

export class MailEntity{
    @IsNotEmpty({message:"邮箱地址不能为空"})
    @IsEmail({},{message:"您输入的邮箱地址不合法"})
    readonly email: string;
} 